/*
model for mcv format.
*/

#ifndef STATE_NORMAL_H
#define STATE_NORMAL_H

#include <vector>
#include <string>

#include "mvc/mystate.h"

template <class T>
class StateNormal: public MyState<T> {

  public:
    // ------------------ virtual -------------------- //
    virtual std::string processEvent(ALLEGRO_EVENT* ev) {
        if(ev->type == ALLEGRO_EVENT_KEY_CHAR) {
            // determine action from key
            if(ev->keyboard.keycode == ALLEGRO_KEY_M) {
                // go to new-member-creation mode
                return "new member";
            }
            else if(ev->keyboard.keycode == ALLEGRO_KEY_L) {
                // go to new-load-point mode
                //setFirstResponder(controllers["loads"]);
            }
            else if(ev->keyboard.keycode == ALLEGRO_KEY_S) {
                // go to support-point-selection mode
                //setFirstResponder(controllers["supports"]);
            }
            else if(ev->keyboard.keycode == ALLEGRO_KEY_C) {
                // calculate bridge results
            }
        }
    }
};

#endif

